package com.entrogy.dao;

import com.entrogy.bean.PubCountEntity;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface PubcountMapper {
	@Select("SELECT * FROM pubcount_information WHERE unionid=#{unionid}")
	List<PubCountEntity> getPubCountEntityList(@Param("unionid") String unionid);
    @Update("UPDATE pubcount_information SET openid=#{openid},username=#{username} WHERE unionid=#{unionid}")
	int updatePubcountInformation(@Param("unionid") String unionid, @Param("openid") String openid,@Param("username") String username);
    @Insert("INSERT INTO pubcount_information(unionid, openid,username) VALUES(#{unionid},#{openid},#{username})")
	int insertPubcountInformation(@Param("unionid") String unionid,@Param("openid") String openid,@Param("username") String username);
}
